package com.jae.utils;

import com.jae.model.ServiceRuntimeException;
import org.springframework.util.StringUtils;

public class Assert{

    public static void hasText(String text, String message) {
        if(!StringUtils.hasText(text)){
            throw new ServiceRuntimeException(message);
        }
    }

    public static void notNull(Object object, String message) {
        if(object == null){
            throw new ServiceRuntimeException(message);
        }
    }
}
